* print.c (print_object): Remove var that is set but not used.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Apr 2011 07:13:23 +0000 (00:13 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 1 Apr 2011 07:13:23 +0000 (00:13 -0700)
src/ChangeLog
src/print.c

index a5cf9dd5c837a7a3dfd0b8a55c1314ece4d83183..be1c1e435ffdeb7aa3ee3c67d359528986dd29a1 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * print.c (print_object): Remove var that is set but not used.
+
        Replace two copies of readlink code with single gnulib version.
        The gnulib version avoids calling malloc in the usual case,
        and on 64-bit hosts doesn't have some arbitrary 32-bit limits.
index e44d4d14f363bf35ccdfe4ca0d38e551fd24a16c..dd3d1c9bbb2dee6db46fdcaa7525fc17c21853e5 100644 (file)
@@ -1460,7 +1460,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
        print_string (obj, printcharfun);
       else
        {
-         register EMACS_INT i, i_byte;
+         register EMACS_INT i_byte;
          struct gcpro gcpro1;
          unsigned char *str;
          EMACS_INT size_byte;
@@ -1484,7 +1484,7 @@ print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag
          str = SDATA (obj);
          size_byte = SBYTES (obj);
 
-         for (i = 0, i_byte = 0; i_byte < size_byte;)
+         for (i_byte = 0; i_byte < size_byte;)
            {
              /* Here, we must convert each multi-byte form to the
                 corresponding character code before handing it to PRINTCHAR.  */